import { AppDataSource } from "./data-source";
import { one2one } from "./one2one";
import { one2many } from "./one2many";
import { many2many } from "./many2many";

AppDataSource.initialize()
  .then(async () => {
    console.log("Data source initialized");
    // await one2one(AppDataSource); // run one2one tests
    // await one2many(AppDataSource); // run one2one tests
    // await many2many(AppDataSource); // run one2one tests

    console.log(
      "Here you can setup and run express / fastify / any other framework."
    );
  })
  .catch((error) => console.log(error));
